var dataReadyHold = null;

Router.configure({
  layoutTemplate: 'appBody',
  notFoundTemplate: 'appNotFound',

  waitOn: function() {
    // return [
    //   Meteor.subscribe(''),
    //   Meteor.subscribe('')
    // ];
  }
});


Router.map(function() {
  this.route('home', {
    path: '/',
    action: function() {
      Router.go('berths');
    }
  });
   this.route('signin');
  this.route('signup');
  this.route('berths');
  this.route('departments');
  this.route('statistics');
  this.route('userprofile')
});

if (Meteor.isClient) {
  // Meteor.subscribe("userData");
  Meteor.users.allow({remove:function() { return true }});
  // Meteor.users.allow({findOne:function() { return true }});
};